const path = require('path')
module.exports = {
    //axios域代理，解决axios跨域问题
    //关键点在这 
    publicPath: './',
    runtimeCompiler: true,

    devServer: {
        proxy: {
            '/Api': {
                // target: 'http://192.168.8.60:8004',
                target: 'http://121.41.46.102:8004',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/Api': '/'
                }
            }
        }
    },

    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                path.resolve(__dirname, './src/assets/less/public.less')
            ]
        }
    },
}
